<?php

function connect(){
	$user = "username";
	$pass = "userpass";
	$host = "yourserver";
	$db_name = "yourdatabase";  
	$db = new PDO("mysql:host=$host;dbname=$db_name",$user,$pass);
	return $db;
}
?>
